Add a helpful comment
authorMatthias Clasen <mclasen@redhat.com>
Fri, 31 Aug 2018 17:23:25 +0000 (13:23 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 31 Aug 2018 17:23:25 +0000 (13:23 -0400)
gtk/gtkprivate.c

index b8a34f32b55e256702382df1e7be2f76b86bf41b..58618508d33daf67f2ff2c9330f3d7ee874f8d2f 100644 (file)
@@ -302,6 +302,7 @@ get_portal_path (GDBusConnection  *connection,
   char *path;
 
   *token = g_strdup_printf ("gtk%d", g_random_int_range (0, G_MAXINT));
+  /* +1 to skip the leading : */
   sender = g_strdup (g_dbus_connection_get_unique_name (connection) + 1);
   for (i = 0; sender[i]; i++)
     if (sender[i] == '.')